<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="d" uri="http://dgg.net/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>${title}</title>
    <c:import url="header_evaluating.jsp"/>
</head>

<body>
<!-- 头部 -->
<header>
    <a href="javascript:history.back(-1)">
        <img src="${rootUrl}/static/evaluating/images/back-ico.png" alt="">
    </a>
    <span>${title}</span>
    <input type="hidden" id="paperCategory" name="paperCategory" value="${paperCategory}">
    <span>
        <div id="paperAreaCode" name="paperAreaCode" class=" reset-option">
                <div onclick="areaSelect()" style="align: center;">${paperAreaName} <img src="${rootUrl}/static/evaluating/images/area.png" alt=""></div>

        </div>
    </span>
    <%--<a href="javascript:void(0);"></a>--%>
</header>
<!-- 主题 -->
<div class="main">
    <ul class="nav-list">
        <c:forEach items="${evaluatingTestPaperList}" var="key">
            <li>
                <a href="javascript:void(0);" onclick="findPaper('${key.paperCode}')">
                    <img src="${rootUrl}/static/evaluating/images/icon_diyaxing.png" alt="">
                    <span>${key.paperName}</span>
                    <img src="${rootUrl}/static/evaluating/images/arrow-ico.png" class="arrow-ico" alt="">
                </a>
            </li>
        </c:forEach>
    </ul>
</div>
<!-- 字体自适应 -->
<script src="${rootUrl}/static/evaluating/js/autoSize.js"></script>
<script  src="${rootUrl}/static/evaluating/js/bscroll.min.js"></script>
<script src="${rootUrl}/static/evaluating/js/jquery.min.js"></script>
<link rel="stylesheet" href="${rootUrl}/static/evaluating/css/reset1.css">
<link rel="stylesheet" href="${rootUrl}/static/evaluating/css/index1.css">
<script>
    $(function(){
        $("#paperAreaCode").change(function(){
            var paperCategory = $("#paperCategory").val();
            var paperAreaCode = $("#paperAreaCode").val();
            window.location.href = sysInfo.basePath+"/api/evaluating/query_paper_by_paper_type.html?paperType="+paperCategory+"&paperAreaCode="+paperAreaCode;
        })
    })

    function areaSelect(){
        var paperCategory = $("#paperCategory").val();
        var paperAreaCode = $("#paperAreaCode").val();
        window.location.href = sysInfo.basePath+"/api/evaluating/area_select.html?paperType="+paperCategory+"&paperAreaCode="+paperAreaCode;
    }

    function findPaper(paperCode) {
        var codeType = paperCode;
        if("" == codeType || null == codeType || undefined == codeType){
            dggui.dialog.info('试题不能为空！');
            return;
        }
        window.location.href = sysInfo.basePath+"/api/evaluating/query_paper.html?codeType="+codeType;
    }
</script>
</body>
</html>